home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
19
/
madtrb11.zip
/
INTR.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1985-08-05
|
1KB
|
45 lines
PROGRAM INTR_Demo;
{
This program demonstrates the cursor-control routines
in the INTR.INC file.
Source: "INTRoducing The INTR Procedure", TUG Lines Volume I Issue 5
Author: Marshall Brain/Brain Software Systems
Application: IBM PC (and true compatibles)
}
var
q,x,y:byte;
z:integer;
temp1,temp2:string[40];
{$i INTR.INC}
begin
gotoxy(10,10);write('today''s date is : ');
getdate(x,y,z);
str(x,temp2);
temp1:=temp2+'/';
str(y,temp2);
if length(temp2)=1 then temp2:=' '+temp2;
temp1:=temp1+temp2+'/';
z:=z-1900;
str(z,temp2);
temp1:=temp1+temp2;
write(temp1);
gotoxy(10,12);write('the time is : ');
gettime(x,y,q);
if x>12 then x:=x-12;
if x=0 then x:=1;
str(x,temp2);
temp1:=temp2+':';
str(y,temp2);
if length(temp2)=1 then temp2:='0'+temp2;
temp1:=temp1+temp2;
write(temp1);
gotoxy(10,14);write('the cursor is big : ');
curson;nosound;sound(700);delay(200);nosound;delay(3300);
gotoxy(10,14);write('the cursor is off : ');cursoff;delay(3300);
gotoxy(10,14);write('the cursor is normal : ');cursnorm;delay(3300);
end.